package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtCouponSendRecord;
import com.ymttest.utils.EnvSetup;

public class YmtCouponSendRecordWapper {
	SqlManager manage;

    public YmtCouponSendRecordWapper() {
        manage = new SqlManager("ymt" + EnvSetup.getEnv());
    }

    public List<YmtCouponSendRecord> selectTop1SendFailRecord() {
        List<YmtCouponSendRecord> result = manage
                .getSelectResults(
                        "com.ymttest.database.mapping.YmtCouponSendRecordMapper.selectTop1SendFailRecord",
                        null);
        return result;
    }
    
    public List<YmtCouponSendRecord> selectSendFailRecord(int taskId) {
        List<YmtCouponSendRecord> result = manage
                .getSelectResults(
                        "com.ymttest.database.mapping.YmtCouponSendRecordMapper.selectSendFailRecord",
                        taskId);
        return result;
    }
    
    public List<YmtCouponSendRecord> selectSendRecord(int taskId) {
        List<YmtCouponSendRecord> result = manage
                .getSelectResults(
                        "com.ymttest.database.mapping.YmtCouponSendRecordMapper.selectSendRecord",
                        taskId);
        return result;
    }
}
